package com.zzptc.zzsgz.bdsjws;

import android.app.Application;
import android.content.Context;

import com.socks.library.KLog;
import com.zzptc.zzsgz.bdsjws.com.Constants;

/**
 * Created by zzsgz on 2017/4/20.
 */

public class MyApplication extends Application {
    //功能：1、提供全局的上下文 2、初始化KLOG
    static Context context;

//真正的入口方法
    @Override
    public void onCreate() {
        super.onCreate();
        context=getApplicationContext();
        KLog.init(BuildConfig.LOG_DEBUG, Constants.LOG_FLAG);
    }

    public static Context getContext(){

        return context;
    }

}
